// 使用getters开放理由的访问信息
// 通过getters声明userId(快捷访问
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  // 使用getters暴露属性
  userId: state => state.user.userInfo.userId, // 向外暴露用户id
  avatar: state => state.user.userInfo.staffPhoto, // 向外暴露头像
  name: state => state.user.userInfo.username, // 向外暴露用户名
  routes: state => state.user.routes,
  company: state => state.user.userInfo.company, // 公司名称
  departmentName: state => state.user.userInfo.departmentName // 部门名称
}
export default getters
